import { ApiProperty } from "@nestjs/swagger";
import { IsOptional } from "class-validator";

export class CreateLogDto {
    @ApiProperty({ description: "用户标识" })
    @IsOptional()
    userFlag: string;
    
    @ApiProperty({ description: "请求ip" })
    @IsOptional()
    ip: string;
    
    @ApiProperty({ description: "日志名" })
    @IsOptional()
    name: string;
    
    @ApiProperty({ description: "请求方法" })
    @IsOptional()
    method: string;
    
    @ApiProperty({ description: "请求接口" })
    @IsOptional()
    path: string;
    
    @ApiProperty({ description: "请求参数" })
    @IsOptional()
    arguments: string;
    
    @ApiProperty({ description: "类型" })
    @IsOptional()
    type: number;
}
